package com.lijie.bs_recruit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.lijie.bs_recruit.model.Position;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李杰
 * @since 2021-03-15
 */

public interface PositionService extends IService<Position> {

    //职位的分页查询  无价格
    PageInfo<Position> selPositionPage(Integer pageIndex, Position position);

    //管理员查看已经审核过的职位 isCheck !=0
    PageInfo<Position> adminSelPositionChecked(Integer pageIndex, Position position);



    //降职为
    Boolean updatePositionCheck(Position position);

    //更新上下架状态
    Boolean updatePositionOpen(Integer PositionId);

    //更具positionId 查询
    Position selPosotionByid(Integer PositionId);

    //通过wrapper多条件查询
    PageInfo<Position> selPositionByWrapper(Integer pageIndex, QueryWrapper<Position> wrapper);



}
